from paper_ai.app import app
import os


if __name__ == '__main__':
    import uvicorn

    SERVICE_HOST = os.environ.get('BACKEND_HOST', '0.0.0.0')
    SERVICE_PORT = int(os.environ.get('BACKEND_PORT', '5239'))

    uvicorn.run('paper_ai.app:app', host=SERVICE_HOST, port=SERVICE_PORT, reload=True)
